#pragma once
#include "SGD Wrappers\Entity.h"
class CPunch:
	public Entity
{
	Entity* owner = nullptr;
	float m_IPunchTimer = 0.0f;
	bool m_bIsHeadingRight;
public:
	CPunch();
	~CPunch();

	virtual int		GetType(void)	const			override	{ return ENT_PUNCH; }
	virtual void	Render(void)					override;
	virtual void	Update(float elapsedTime)		override;
	virtual SGD::Rectangle GetRect(void)	const			override;
	bool GetHeading() { return m_bIsHeadingRight; }

	void SetPunchTimer(float i) { m_IPunchTimer = i; }
	Entity* GetOwner(void){ return owner;}
	void SetOwner(Entity* o);
	void SetHeading(bool h){ m_bIsHeadingRight = h; }
	virtual void HandleCollision(const Entity* pOther) override;
};